<?php
class BonusCard{
	private $m_id;
	private $m_activated;
	private $m_type;
	private $m_currentCharges;
	private $m_maxCharges;
	private $m_cardList;
	private $r_owner;
	
	function GetID()
	{
		return $this->m_id;
	}
	function GetActivated()
	{
		return $this->m_activated;
	}
	function GetType()
	{
		return $this->m_type;
	}
	function GetCurrentCharges()
	{
		return $this->m_currentCharges;
	}
	function GetMaxCharges()
	{
		return $this->m_maxCharges;
	}
	function GetCardList()
	{
		return $this->m_cardList;
	}
	function GetOwner()
	{
		return $this->r_owner;
	}
	function SetOwner($owner)
	{
		$this->r_owner = $owner;
	}
	function toogle()
	{
		if($this->m_activated == true)
		{
			$this->deactivate();
		}
		else 
		{
			$this->activate();
		}
	}
	function activate()
	{
		$this->m_activated = true;
	}
	function deactivate()
	{
		$this->m_activated = false;
	}
	function remove()
	{
		if($this->m_activated == false)
		{
			$this->deactivate();
		}
	}
}
